package enum_;

/**
 * @author green-citrus
 * @version 1.0
 */
public class EnumExercise01 {
    public static void main(String[] args) {
        Gender2 boy = Gender2.BOY;
        Gender2 boy2 = Gender2.BOY;
        System.out.println(boy); // 输出BOY 本质就是调用 Gender2 的父类Enum的 toString()
        System.out.println(boy2 == boy); // True
    }
}

enum Gender2 {
    BOY, GIRL;
}